package com.neusoft.orcode.info;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class QrCodeInfo {

    String auth_id;
    String code_mark = "Health records Authorization";

    public QrCodeInfo(String auth_id) {
        this.auth_id = auth_id;
    }

    @Override
    public String toString() {
        String s = "{auth_id:"+auth_id+",code_mark:"+code_mark+"}";
        //返回json
//        return JSONObject.toJSONString(this);
        // 返回单引号json
        return s;
    }

}
